package com.earthchen.config;

/**
 * 包括sql的类型、方法名、sql语句、返回类型和参数类型
 *
 * @author earthchen
 * @date 2018/8/12
 **/
public class Function {


    /**
     * sql的类型
     */
    private String sqlType;

    /**
     * 方法名
     */
    private String funcName;

    /**
     * sql语句
     */
    private String sql;

    /**
     * 返回类型
     */
    private Object resultType;

    /**
     * 参数类型
     */
    private String parameterType;


    public String getSqlType() {
        return sqlType;
    }

    public void setSqlType(String sqlType) {
        this.sqlType = sqlType;
    }

    public String getFuncName() {
        return funcName;
    }

    public void setFuncName(String funcName) {
        this.funcName = funcName;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public Object getResultType() {
        return resultType;
    }

    public void setResultType(Object resultType) {
        this.resultType = resultType;
    }

    public String getParameterType() {
        return parameterType;
    }

    public void setParameterType(String parameterType) {
        this.parameterType = parameterType;
    }


    @Override
    public String toString() {
        return "Function{" +
                "sqlType='" + sqlType + '\'' +
                ", funcName='" + funcName + '\'' +
                ", sql='" + sql + '\'' +
                ", resultType=" + resultType +
                ", parameterType='" + parameterType + '\'' +
                '}';
    }
}
